package com.lixixi.tingshu.album.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lixixi.tingshu.album.mapper.BaseCategory3Mapper;
import com.lixixi.tingshu.album.service.BaseCategory3Service;
import com.lixixi.tingshu.model.album.BaseCategory3;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BaseCategory3ServiceImpl extends ServiceImpl<BaseCategory3Mapper, BaseCategory3> implements BaseCategory3Service {
	@Autowired
	BaseCategory3Mapper baseCategory3Mapper;
	@Override
	public List<BaseCategory3> findTopBaseCategory3(Long categoryId1) {
		return baseCategory3Mapper.findBaseCategory3(categoryId1, 7L);
	}

	@Override
	public List<BaseCategory3> findBaseCategory3(Long categoryId1) {
		return baseCategory3Mapper.findBaseCategory3(categoryId1, null);
	}
}
